<?php 
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
include '../content-home/showscreen.php';

if(isset($_SESSION['mylistcarnum']) and is_array($_SESSION['mylistcarnum'])){
	$mylistcarnum = $_SESSION['mylistcarnum'];
	if (isset($_REQUEST['s_carid'])) {
		$dataSearch = $mylistcarnum[$_REQUEST['s_carid']]; 
		$id = $dataSearch[0];
		$name = $dataSearch[1];
		$car_datetime = $dataSearch[2];
		$carnumber = $dataSearch[3];
		$host = $dataSearch[4];
		$filename1 = $dataSearch[5];
		$isReg = $dataSearch[6];
		$_SESSION['currentcarnum'] = array($id,$name,$car_datetime,$carnumber,$host,$filename1,$isReg,$_REQUEST['s_carid']);
		
		$first = substr($filename1, 0,18);
		$middle = substr($filename1, 18,3);
		$last = substr($filename1, 21);
		$filename2 = $first.'002'.$last;
		$filename3 = $first.'003'.$last;
		$url1 = new showscreen();
		$url1->GetPath($id,$name,$car_datetime,$carnumber,$host,$filename1,$isReg);
		?>
		<div>
			<div id="image1"><?=$url1->image?> </div>
		<?php $url1->GetPath($id,$name,$car_datetime,$carnumber,$host,$filename2,$isReg);?>
			<div id="image2"><?=$url1->image ?></div>
		<?php $url1->GetPath($id,$name,$car_datetime,$carnumber,$host,$filename3,$isReg);?>
			<div id="image3"><?=$url1->image ?></div>
		</div>
	
	<?php }
}

?>

